package com.huitone.gddw.dao.entity;

import java.util.Date;

public class Role {
    
	public static String ACS_UNIT = "0"; 	// 访问本单位数据
	public static String ACS_ROOT = "1"; 	// 访问所有数据
	
	private String roleId;

    private String roleName;

    private String acsFlag;

    private String status = "1";

    private String remark;

    private Date insertTime;

    private String insertStaffId;

    private Date lastModTime;

    private String lastModStaffId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getAcsFlag() {
        return acsFlag;
    }
    
    public String getAcsFlagStr() {
		if (null == this.acsFlag) return "未知";
		if (this.acsFlag.equals("0")) return "本单位数据";
		if (this.acsFlag.equals("1")) return "所有数据";
		return "未知";
	}

    public void setAcsFlag(String acsFlag) {
        this.acsFlag = acsFlag == null ? null : acsFlag.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public String getInsertStaffId() {
        return insertStaffId;
    }

    public void setInsertStaffId(String insertStaffId) {
        this.insertStaffId = insertStaffId == null ? null : insertStaffId.trim();
    }

    public Date getLastModTime() {
        return lastModTime;
    }

    public void setLastModTime(Date lastModTime) {
        this.lastModTime = lastModTime;
    }

    public String getLastModStaffId() {
        return lastModStaffId;
    }

    public void setLastModStaffId(String lastModStaffId) {
        this.lastModStaffId = lastModStaffId == null ? null : lastModStaffId.trim();
    }
}